﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Xml.Serialization;
using System.Xml;




namespace smsWCFServiceTest
{
    class Program
    {
        static void Main(string[] args)
        {
            //using(CalculatorServiceNS.CalculatorServiceClient proxy = new CalculatorServiceNS.CalculatorServiceClient())
            //{
            //    Console.WriteLine(string.Format("9 + 10 = {0}",proxy.Add(9 , 10)));
            //}
            using (SMSServiceNS.SMSServiceSoapClient sc = new SMSServiceNS.SMSServiceSoapClient("SMSServiceSoap"))


            {
                NewDataSetResult nn = new NewDataSetResult();
                Console.WriteLine(sc.SendSMS("15618263861",40,"Hello world!", new DateTime(2010,1,1) , "JJJJJJJ"));
                //XmlSerializer xms = new XmlSerializer(typeof(NewDataSetResult));
                //XmlElement xmlResult = sc.QuerySMSState("");
                //XmlReader reader = XmlReader.Create(xmlResult.OuterXml);
                //NewDataSetResult result = xms.Deserialize(reader) as NewDataSetResult;
                




            }


            


            Console.Read();
        }
    }
}
